package com.yeyks.other.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动抽奖记录表
 * </p>
 *
 * @author yun
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ActivityDrawRecord对象", description = "活动抽奖记录表")
public class ActivityDrawRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "用户手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "中奖结果")
    @TableField("result_content")
    private String resultContent;

    @ApiModelProperty(value = "对应活动")
    @TableField("activity")
    private String activity;

    @ApiModelProperty(value = "0：未兑奖  1:已兑奖")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String RESULT_CONTENT = "result_content";

    public static final String ACTIVITY = "activity";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

}
